<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="用户端.css">
    <script src="用户端.js"></script>
</head>

<body>
    <div class='head'>行政审批系统</div>

    <div class='left'>
        <img src="wk.png" alt="" id="img1">
        <div id="Aa"><a href="../登录系统/登录.html">退出登录></a></div>
        <button class="Ab" id="Ab1">个人主页</button>
        <button class="Ab" id="Ab2">任务列表</button>
    </div>

    <div class="head2">个人主页</div>

    <div class="subjeck1">个人档案
        <ul id="subul">
            <li>
                用户名:1333333254
            </li>
            <li>
                账号:233336666
            </li>
            <li>
                联系方式:123456789
            </li>
        </ul>
    </div>

    <div class="subjeck2">
        <table cellspacing=“0” cellpadding=“10”>
            <tr>
                <th>序号</th>
                <th>类型</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <tr>
                <td>11111</td>
                <td>22222</td>
                <td>33333</td>
                <td>
                    <button>提交</button>
                    <button>投诉</button>
                </td>
            </tr>
            <tr>
                <td>11111</td>
                <td>22222</td>
                <td>33333</td>
                <td>
                    <button>提交</button>
                    <button>投诉</button>
                </td>
            </tr>
            <tr>
                <td>11111</td>
                <td>22222</td>
                <td>33333</td>
                <td>
                    <button>提交</button>
                    <button>投诉</button>
                </td>
            </tr>

        </table>
    </div>



    <div></div>
</body>

<script>
    //个人档案显示
    var li = document.getElementsByTagName('li');
    i = localStorage.getItem('this');
    li[0].innerText = '用户名：' + JSON.parse(localStorage.getItem('yong'))[i];
    li[1].innerText = '账号： ' + JSON.parse(localStorage.getItem('zhang'))[i];
    li[2].innerText = '联系方式：' + JSON.parse(localStorage.getItem('dian'))[i];


    //菜单栏点击切换
    var head2 = document.querySelector('.head2');
    var subjeck1 = document.querySelector('.subjeck1');
    var subjeck2 = document.querySelector('.subjeck2');
    var Ab1 = document.getElementById('Ab1');
    var Ab2 = document.getElementById('Ab2');

    Ab1.onclick = function () {
        subjeck1.style.display = 'block';
        subjeck2.style.display = 'none';
        head2.innerHTML = '个人主页';
    }

    Ab2.onclick = function () {
        subjeck1.style.display = 'none';
        subjeck2.style.display = 'block';
        head2.innerHTML = '任务列表';
    }
</script>

</html>


